package com.health.service;

import java.util.List;

import com.health.exceptions.ValidatorException;
import com.health.exceptions.ValidatorLevelException;
import com.health.model.User;

public interface IUserService
{
	void insert(User u) throws ValidatorLevelException, ValidatorException;

	void update(User u);

	void delete(User u);

	User selectByPK(User u);

	User selectByPK(String id);

	List<User> selectListAll(User u);

	List<User> selectListPage(User u);

	Object login(User u);
	
	int checkUserExist(String email);
	
	
	/**
	 * int insertBatch(List<User> list);
	 * 
	 * int updateBatch(List<User> list);
	 * 
	 * int deleteBatch(List<User> list);
	 **/

	
}
